# -*- encoding:utf-8 -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 5
_modified_time = 1293141039.59392
_template_filename='/home/sunzheng/Projects/FidoWeb/FidoWeb_0.98/fidoweb/templates/login/settings.mako'
_template_uri='login/settings.mako'
_template_cache=cache.Cache(__name__, _modified_time)
_source_encoding='utf-8'
from webhelpers.html import escape
_exports = []


def render_body(context,**pageargs):
    context.caller_stack._push_frame()
    try:
        __M_locals = __M_dict_builtin(pageargs=pageargs)
        c = context.get('c', UNDEFINED)
        __M_writer = context.writer()
        # SOURCE LINE 1

        c.jsFiles.append('/script/login/settings.js')
        
        
        # SOURCE LINE 3
        __M_writer(u'\n<div id="mysettings">\n')
        # SOURCE LINE 5
        if c.loginUser == None :
            # SOURCE LINE 6
            __M_writer(u'\t<h1>\u8bf7\u767b\u5f55\u3002</h1>\n')
            # SOURCE LINE 7
        else :
            # SOURCE LINE 8
            __M_writer(u'\t<h1>\u6b22\u8fce\uff0c')
            __M_writer(filters.decode.utf8(c.loginUser.name))
            __M_writer(u'\uff01</h1>\n\t<div>\n\t\t<div class="page_column_left_padding15">\n\t\t\t<div class="top"></div>\n\t\t\t<div class="content">\n\t\t\t\t<div>\u5bc6\u7801\uff1a<a id="inline" href="#dialog_changepass" rel="prettyPhoto"><img style="display:none;" alt="\u4fee\u6539\u5bc6\u7801"></img>\u4fee\u6539</a></div>\n\t\t\t\t<div id="dialog_changepass" class="hidden_example">\n\t\t\t\t\t<div id="form_changepass">\n\t\t\t\t\t\t<form>\n\t\t\t\t\t\t\t<div id="changepass_oldpass">\n\t\t\t\t\t\t\t\t<label>\u65e7\u5bc6\u7801</label>\n\t\t\t\t\t\t\t\t<input type="password" name="oldpass" class="validate[required,funcCall[validateOldPass]]" id="input_oldpass"></input>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div id="changepass_password">\n\t\t\t\t\t\t\t\t<label>\u65b0\u5bc6\u7801</label>\n\t\t\t\t\t\t\t\t<input type="password" name="newpass" class="validate[required,funcCall[validateNewPass]]" id="input_newpass"></input>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div id="changepass_password">\n\t\t\t\t\t\t\t\t<label>\u786e\u8ba4\u5bc6\u7801</label>\n\t\t\t\t\t\t\t\t<input type="password" name="retype_pass" class="validate[required,funcCall[validateRetypePass]]" id="input_retype_pass"></input>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div id="bottom_buttons" style="margin:0;padding:0;line-height:25px;">\n\t\t\t\t\t\t\t\t<a id="button_submit" href="javascript:settingsCtrl.processSubmit();">\u786e\u8ba4</a>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</form>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div>\u751f\u65e5\uff1a\n')
            # SOURCE LINE 36
            if c.loginUser.birthday != None :
                # SOURCE LINE 37
                __M_writer(u'\t\t\t\t\t\t')
                __M_writer(filters.decode.utf8(c.loginUser.birthday.strftime('%Y-%m-%d')))
                __M_writer(u'\n')
                # SOURCE LINE 38
            else :
                # SOURCE LINE 39
                __M_writer(u'\t\t\t\t\t\t\u672a\u77e5\n')
                pass
            # SOURCE LINE 41
            __M_writer(u'\t\t\t\t</div>\n\t\t\t\t<div>\u90ae\u7bb1\uff1a\n')
            # SOURCE LINE 43
            if c.loginUser.email != None :
                # SOURCE LINE 44
                __M_writer(u'\t\t\t\t\t\t')
                __M_writer(filters.decode.utf8(c.loginUser.email))
                __M_writer(u'\n')
                # SOURCE LINE 45
            else :
                # SOURCE LINE 46
                __M_writer(u'\t\t\t\t\t\t\u672a\u7ed1\u5b9a\n')
                pass
            # SOURCE LINE 48
            __M_writer(u'\t\t\t\t</div>\n\t\t\t\t<div>\u624b\u673a\uff1a\n')
            # SOURCE LINE 50
            if c.loginUser.mobile != None :
                # SOURCE LINE 51
                __M_writer(u'\t\t\t\t\t\t')
                __M_writer(filters.decode.utf8(c.loginUser.mobile[:3] + '****' + c.loginUser.mobile[7:]))
                __M_writer(u'\n')
                # SOURCE LINE 52
            else :
                # SOURCE LINE 53
                __M_writer(u'\t\t\t\t\t\t\u672a\u7ed1\u5b9a\n')
                pass
            # SOURCE LINE 55
            __M_writer(u'\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="bottom"></div>\n\t\t</div>\n\t\t<div class="page_column_right_padding_left30"></div>\n\t</div>\n')
            pass
        # SOURCE LINE 62
        __M_writer(u'</div>')
        return ''
    finally:
        context.caller_stack._pop_frame()


